package com.zmn.oms.admin.controller.passport;

import com.zmn.mcc.cas.web.StaffAdminService;
import com.zmn.mcc.common.dto.permit.SpermitDTO;
import com.zmn.mcc.dubbo.interfaces.staff.StaffPermitRemoteService;
import com.zmn.oms.admin.controller.OmsBaseController;
import org.apache.shiro.SecurityUtils;
import org.apache.shiro.authz.AuthorizationInfo;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.servlet.ModelAndView;

import javax.servlet.http.HttpServletRequest;

/** 
 * 类描述：首页
 * @author  lujia
 * @date   2018-11-07 09:49:01
 */
@Controller
@RequestMapping("/")
public class PassportListController extends OmsBaseController {

    private Logger logger = LoggerFactory.getLogger(PassportListController.class);

    /**
     * 主页面
     */
    @RequestMapping(value = {"/", "/index"})
    public ModelAndView index(HttpServletRequest request) {
        ModelAndView mav = new ModelAndView("index");
        mav.addObject("staffName", getCurrentStaff().getRealName());
        return mav;
    }


}
